/*     */ package com.cr.common.core.domain.entity;
/*     */ 
/*     */ import com.cr.common.core.domain.BaseEntity;
/*     */ import com.fasterxml.jackson.annotation.JsonIgnore;
/*     */ import javax.validation.constraints.Email;
/*     */ import javax.validation.constraints.NotBlank;
/*     */ import javax.validation.constraints.Size;
/*     */ import org.apache.commons.lang3.builder.ToStringBuilder;
/*     */ import org.apache.commons.lang3.builder.ToStringStyle;
/*     */ 
/*     */ public class SysDept extends BaseEntity {
/*     */   private static final long serialVersionUID = 1L;
/*     */   
/*     */   private Long deptId;
/*     */   
/*     */   private Long parentId;
/*     */   
/*     */   private String ancestors;
/*     */   
/*     */   private String deptName;
/*     */   
/*     */   private String orderNum;
/*     */   
/*     */   private String leader;
/*     */   
/*     */   private String phone;
/*     */   
/*     */   private String email;
/*     */   
/*     */   private String status;
/*     */   
/*     */   private String delFlag;
/*     */   
/*     */   private String parentName;
/*     */   
/*     */   private Long excludeId;
/*     */   
/*     */   public Long getDeptId() {
/*  58 */     return this.deptId;
/*     */   }
/*     */   
/*     */   public void setDeptId(Long deptId) {
/*  63 */     this.deptId = deptId;
/*     */   }
/*     */   
/*     */   public Long getParentId() {
/*  68 */     return this.parentId;
/*     */   }
/*     */   
/*     */   public void setParentId(Long parentId) {
/*  73 */     this.parentId = parentId;
/*     */   }
/*     */   
/*     */   public String getAncestors() {
/*  78 */     return this.ancestors;
/*     */   }
/*     */   
/*     */   public void setAncestors(String ancestors) {
/*  83 */     this.ancestors = ancestors;
/*     */   }
/*     */   
/*     */   @NotBlank(message = "部门名称不能为空")
/*     */   @Size(min = 0, max = 30, message = "部门名称长度不能超过30个字符")
/*     */   public String getDeptName() {
/*  90 */     return this.deptName;
/*     */   }
/*     */   
/*     */   public void setDeptName(String deptName) {
/*  95 */     this.deptName = deptName;
/*     */   }
/*     */   
/*     */   @NotBlank(message = "显示顺序不能为空")
/*     */   public String getOrderNum() {
/* 101 */     return this.orderNum;
/*     */   }
/*     */   
/*     */   public void setOrderNum(String orderNum) {
/* 106 */     this.orderNum = orderNum;
/*     */   }
/*     */   
/*     */   public String getLeader() {
/* 111 */     return this.leader;
/*     */   }
/*     */   
/*     */   public void setLeader(String leader) {
/* 116 */     this.leader = leader;
/*     */   }
/*     */   
/*     */   @Size(min = 0, max = 11, message = "联系电话长度不能超过11个字符")
/*     */   public String getPhone() {
/* 122 */     return this.phone;
/*     */   }
/*     */   
/*     */   public void setPhone(String phone) {
/* 127 */     this.phone = phone;
/*     */   }
/*     */   
/*     */   @Email(message = "邮箱格式不正确")
/*     */   @Size(min = 0, max = 50, message = "邮箱长度不能超过50个字符")
/*     */   public String getEmail() {
/* 134 */     return this.email;
/*     */   }
/*     */   
/*     */   public void setEmail(String email) {
/* 139 */     this.email = email;
/*     */   }
/*     */   
/*     */   public String getStatus() {
/* 144 */     return this.status;
/*     */   }
/*     */   
/*     */   public void setStatus(String status) {
/* 149 */     this.status = status;
/*     */   }
/*     */   
/*     */   public String getDelFlag() {
/* 154 */     return this.delFlag;
/*     */   }
/*     */   
/*     */   public void setDelFlag(String delFlag) {
/* 159 */     this.delFlag = delFlag;
/*     */   }
/*     */   
/*     */   public String getParentName() {
/* 164 */     return this.parentName;
/*     */   }
/*     */   
/*     */   public void setParentName(String parentName) {
/* 169 */     this.parentName = parentName;
/*     */   }
/*     */   
/*     */   @JsonIgnore
/*     */   public Long getExcludeId() {
/* 175 */     return this.excludeId;
/*     */   }
/*     */   
/*     */   public void setExcludeId(Long excludeId) {
/* 180 */     this.excludeId = excludeId;
/*     */   }
/*     */   
/*     */   public String toString() {
/* 185 */     return (new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE))
/* 186 */       .append("deptId", getDeptId())
/* 187 */       .append("parentId", getParentId())
/* 188 */       .append("ancestors", getAncestors())
/* 189 */       .append("deptName", getDeptName())
/* 190 */       .append("orderNum", getOrderNum())
/* 191 */       .append("leader", getLeader())
/* 192 */       .append("phone", getPhone())
/* 193 */       .append("email", getEmail())
/* 194 */       .append("status", getStatus())
/* 195 */       .append("delFlag", getDelFlag())
/* 196 */       .append("createBy", getCreateBy())
/* 197 */       .append("createTime", getCreateTime())
/* 198 */       .append("updateBy", getUpdateBy())
/* 199 */       .append("updateTime", getUpdateTime())
/* 200 */       .toString();
/*     */   }
/*     */ }


/* Location:              D:\tmp\creditorRights-admin\BOOT-INF\lib\creditorRights-common-4.7.0.jar!\com\cr\common\core\domain\entity\SysDept.class
 * Java compiler version: 8 (52.0)
 * JD-Core Version:       1.1.3
 */